using System.Collections;
using Since.Netcode;
using UnityEngine;

public class Freeze : MonoBehaviour
{
	public float time = 1f;

	void Awake()
	{
		GetComponent<NetcodeTransform>().SetVelocity(new Vector3(0, 0, 0));
		StartCoroutine(Delay());
	}
	
	IEnumerator Delay()
	{
		yield return new WaitForSeconds(time);
		GetComponent<NetcodeTransform>().SetVelocity(new Vector3(0, -5, 0));
		Destroy(this);
	}
}
